12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396 |
- <template>
- <div>
- <!-- 页面头部 -->
- <HomePageHead></HomePageHead>
- <!-- 页面导航 -->
- <HomePageNavigation></HomePageNavigation>
- <!-- 广告一 -->
- <HomeAdvertising :imgurl="adImg1"></HomeAdvertising>
- <!-- 二级导航列表 -->
- <div class="nav2top"></div>
- <div class="nav2">
- <ul class="inner">
- <li class="home">
- {{ title }}
- </li>
- <li class="titleList" v-for="(item, index) in pageData" :key="index">
- <NuxtLink :href="getLinkPath(item)" :title="item.alias">
- <span class="nav2_title">{{ item.alias }}</span>
- </NuxtLink>
- </li>
- </ul>
- </div>
- <div class="nav2btm"></div>
- <!-- 第一层 -->
- <!-- 第一部分 -->
- <div class="part1">
- <div class="inner">
- <div class="part1_left" v-if="pageData[0]">
- <div class="part1_title">
- <h2 class="nav_part1_left">
- <NuxtLink :href="getLinkPath(pageData[0])" v-if="pageData[0]" :title="pageData[0].alias">
- {{ pageData[0].alias }}
- </NuxtLink>
- <em></em>
- </h2>
- </div>
- <div class="part1_content">
- <div class="context_left">
- <div class="top" v-for="(item, index) in pageData[0].data" :key="index">
- <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
- <img :src="item.imgurl" alt="item.title">
- <span class="title1">{{ item.title }}</span>
- </NuxtLink>
- </div>
- <div class="bottom">
- <div class="bottom_left" v-for="(item, index) in pageData[0].data1" :key="index">
- <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
- <img :src="item.imgurl" alt="item.title">
- <span class="title2">{{ item.title }}</span>
- </NuxtLink>
- </div>
- </div>
- </div>
- <div class="context_right">
- <ul class="rightContent">
- <li class="context1" v-for="(item, index) in pageData[0].data2" :key="index">
- <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
- {{ item.title }}
- </NuxtLink>
- </li>
- </ul>
- </div>
- </div>
- </div>
- <div class="part1_right" v-if="pageData[1]">
- <div class="part1_right_title">
- <h2 class="part1_right_title1_active">
- <NuxtLink :href="getLinkPath(pageData[1])" v-if="pageData[1]" :title="pageData[1].alias">
- {{ pageData[1].alias }}
- </NuxtLink>
- <em class="active_bg"></em>
- </h2>
- </div>
- <div class="part1_right_content">
- <div class="part1_right_top11">
- <div class="part1_right_content_top" v-for="(item, index) in pageData[1].data" :key="index">
- <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
- <img :src="item.imgurl" alt="item.title">
- <span class="content_top_title2">{{ item.title }}</span>
- </NuxtLink>
- </div>
- </div>
- <!-- <div class="part1_right_content_top" v-for="(item, index) in pageData[1].data" :key="index">
- <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
- <img :src="item.imgurl" alt="item.title">
- <span class="content_top_title2">{{ item.title }}</span>
- </NuxtLink>
- </div> -->
- <ul class="part1_right_content_bottom">
- <li class="content_bottom_list" v-for="(item, index) in pageData[1].data1" :key="index">
- <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
- {{ item.title }}
- </NuxtLink>
- </li>
- </ul>
- </div>
- </div>
- </div>
- </div>
- <!-- 第二部分 -->
- <div class="part2">
- <div class="inner">
- <div class="part2_left" v-if="pageData[2]">
- <div class="part2_title">
- <h2 class="nav_part2_left">
- <NuxtLink :href="getLinkPath(pageData[2])" v-if="pageData[2]" :title="pageData[2].alias">
- {{ pageData[2].alias }}
- </NuxtLink>
- <em></em>
- </h2>
- </div>
- <div class="part2_content">
- <div class="part2_content_left">
- <ul class="content_a">
- <li class="context111" v-for="(item, index) in pageData[2].data2" :key="index">
- <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
- {{ item.title }}
- </NuxtLink>
- </li>
- </ul>
- </div>
- <div class="part2_content_right">
- <div class="right_top" v-for="(item, index) in pageData[2].data" :key="index">
- <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
- <img :src="item.imgurl" alt="item.title">
- <span class="title11">{{ item.title }}</span>
- </NuxtLink>
- </div>
- <div class="right_bottom">
- <div class="bottom_left" v-for="(item, index) in pageData[2].data1" :key="index">
- <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
- <img :src="item.imgurl" alt="item.title">
- <span class="title22">{{ item.title }}</span>
- </NuxtLink>
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="part2_right" v-if="pageData[3]">
- <div class="part2_right_title">
- <h2 class="part2_right_title1_active">
- <NuxtLink :href="getLinkPath(pageData[3])" v-if="pageData[3]" :title="pageData[3].alias">
- {{ pageData[3].alias }}
- </NuxtLink>
- <em class="active_bg11"></em>
- </h2>
- </div>
- <div class="part2_right_content">
- <div class="part2_right_top11">
- <div class="part2_right_content_top" v-for="(item, index) in pageData[3].data" :key="index">
- <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
- <img :src="item.imgurl" alt="item.title">
- <span class="content_top_title22">{{ item.title }}</span>
- </NuxtLink>
- </div>
- </div>
- <ul class="part2_right_content_bottom">
- <li class="content_bottom_list" v-for="(item, index) in pageData[3].data2" :key="index">
- <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
- {{ item.title }}
- </NuxtLink>
- </li>
- </ul>
- </div>
- </div>
- </div>
- </div>
- <!-- 广告二 -->
- <HomeAdvertising :imgurl="adImg2"></HomeAdvertising>
- <!-- 第二层 -->
- <div class="part3" v-if="pageData[4]">
- <div class="inner">
- <div class="part3_left">
- <div class="part3_left_top" v-if="pageData[4]">
- <div class="part3_leftTitle">
- <h2 class="part3_left_title">
- <NuxtLink :href="getLinkPath(pageData[4])" v-if="pageData[4]"
- :title="pageData[4].alias">
- {{ pageData[4].alias }}
- </NuxtLink>
- <em></em>
- </h2>
- </div>
- <div class="part3_left_content" v-if="pageData[4]">
- <div class="part3_left_content_top">
- <div class="content_top_left">
- <div class="part3_photo_text" v-for="(item, index) in pageData[4].data"
- :key="index">
- <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
- <img :src="item.imgurl" alt="item.title">
- <span class="part3_text">{{ item.title }}</span>
- </NuxtLink>
- <span class="littleTips">精选</span>
- </div>
- <ul class="part3_content">
- <li class="part3_content_list" v-for="(item, index) in pageData[4].data1"
- :key="index">
- <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
- {{ item.title }}
- </NuxtLink>
- </li>
- </ul>
- </div>
- <ul class="content_top_right">
- <li class="content_right_list" v-for="(item, index) in pageData[4].data1"
- :key="index">
- <NuxtLink to="#">
- <div class="part3_time">
- <span class="month">{{ getTime(item.updated_at, 'day', 1) }}</span>
- <span class="xiegang">/</span>
- <span class="day">{{ getTime(item.updated_at, 'month', 1) }}</span>
- </div>
- <div class="time_left_content">
- <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
- {{ item.title }}
- </NuxtLink>
- </div>
- </NuxtLink>
- </li>
- </ul>
- </div>
- </div>
- </div>
- <div class="part3_left_bottom" v-if="pageData[5] || pageData[6]">
- <div class="part3_leftTitle1">
- <h2 class="part3_left_title" v-if="pageData[5]" @mouseenter="tabsData = 1"
- :class="{ part3_left_title_active: tabsData == 1 }">
- <NuxtLink :href="getLinkPath(pageData[5])" @mouseenter="tabsData = 1"
- :class="{ active: tabsData == 1 }" :title="pageData[5].alias">
- {{ pageData[5].alias }}
- </NuxtLink>
- <em></em>
- </h2>
- <h2 class="part3_left_title" v-if="pageData[6]" @mouseenter="tabsData = 2"
- :class="{ part3_left_title_active: tabsData == 2 }">
- <NuxtLink :href="getLinkPath(pageData[6])" v-if="pageData[6]" @mouseenter="tabsData = 2"
- :class="{ active: tabsData == 2 }" :title="pageData[6].alias">
- {{ pageData[6].alias }}
- </NuxtLink>
- <em></em>
- </h2>
- </div>
- <div class="part3_left_content1" v-if="tabsData == 1">
- <div class="content_bottom_left">
- <div class="content_top" v-for="(item, index) in pageData[5].data" :key="index">
- <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
- <img :src="item.imgurl" alt="item.title">
- <span class="part3_text">{{ item.title }}</span>
- </NuxtLink>
- </div>
- <div class="content_bottom">
- <div class="content_bottom_1" v-for="(item, index) in pageData[5].data1"
- :key="index">
- <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
- <img :src="item.imgurl" alt="item.title">
- <span class="part3_text">{{ item.title }}</span>
- </NuxtLink>
- </div>
- </div>
- </div>
- <div class="content_bottom_right">
- <ul class="bottom_content_1">
- <li class="bottom_content_list" v-for="(item, index) in pageData[5].data2"
- :key="index">
- <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
- {{ item.title }}
- </NuxtLink>
- </li>
- </ul>
- </div>
- </div>
- <div class="part3_left_content1" v-if="tabsData == 2 && pageData[6].alias">
- <div class="content_bottom_left">
- <div class="content_top" v-for="(item, index) in pageData[6].data" :key="index">
- <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
- <img :src="item.imgurl" alt="item.title">
- <span class="part3_text">{{ item.title }}</span>
- </NuxtLink>
- </div>
- <div class="content_bottom">
- <div class="content_bottom_1" v-for="(item, index) in pageData[6].data1"
- :key="index">
- <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
- <img :src="item.imgurl" alt="item.title">
- <span class="part3_text">{{ item.title }}</span>
- </NuxtLink>
- </div>
- </div>
- </div>
- <div class="content_bottom_right">
- <ul class="bottom_content_1">
- <li class="bottom_content_list" v-for="(item, index) in pageData[6].data2"
- :key="index">
- <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
- {{ item.title }}
- </NuxtLink>
- </li>
- </ul>
- </div>
- </div>
- </div>
- </div>
- <div class="part3_right" v-if="pageData[7]">
- <div class="part3_rightTitle">
- <h2 class="part3_right_title">
- <NuxtLink :href="getLinkPath(pageData[7])" v-if="pageData[7]" :title="pageData[7].alias">
- {{ pageData[7].alias }}
- </NuxtLink>
- <em></em>
- </h2>
- <div class="rightMore">
- <NuxtLink to="#">更多》</NuxtLink>
- </div>
- </div>
- <ul class="part3_right_content_top" v-if="pageData[7].data1.length > 0">
- <li class="part3_right_contentlist_top" v-for="(item, index) in pageData[7].data1" :key="index">
- <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
- <span class="numStyle">{{ index + 1 }}</span>
- {{ item.title }}
- </NuxtLink>
- </li>
- </ul>
- <div class="part3_photo_text_right" v-if="pageData[7].data[0]">
- <NuxtLink :href="getLinkPathDetail(pageData[7].data[0])" :title="pageData[7].data[0].title">
- <span class="part3_text11">{{ pageData[7].data[0].title }}</span>
- <img :src="pageData[7].data[0].imgurl" :alt="pageData[7].data[0].title">
- </NuxtLink>
- </div>
- <ul class="part3_right_content_11" v-if="pageData[7].data2.length > 0">
- <li class="part3_right_contentlist_11" v-for="(item, index) in pageData[7].data2" :key="index">
- <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
- {{ item.title }}
- </NuxtLink>
- </li>
- </ul>
- <div class="part3_photo_text_right" v-if="pageData[7].data[1]">
- <NuxtLink :href="getLinkPathDetail(pageData[7].data[1])" :title="pageData[7].data[1].title">
- <span class="part3_text11">{{ pageData[7].data[1].title }}</span>
- <img :src="pageData[7].data[1].imgurl" :alt="pageData[7].data[1].title">
- </NuxtLink>
- </div>
- <ul class="part3_right_content_11" v-if="pageData[7].data3.length > 0">
- <li class="part3_right_contentlist_11" v-for="(item, index) in pageData[7].data3" :key="index">
- <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
- {{ item.title }}
- </NuxtLink>
- </li>
- </ul>
- <div class="part3_photo_text_right" v-if="pageData[7].data[2]">
- <NuxtLink :href="getLinkPathDetail(pageData[7].data[2])" :title="pageData[7].data[2].title">
- <span class="part3_text11">{{ pageData[7].data[2].title }}</span>
- <img :src="pageData[7].data[2].imgurl" :alt="pageData[7].data[2].title">
- </NuxtLink>
- </div>
- <ul class="part3_right_content_11">
- <li class="part3_right_contentlist_11" v-for="(item, index) in pageData[7].data4" :key="index">
- <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
- {{ item.title }}
- </NuxtLink>
- </li>
- </ul>
- </div>
- </div>
- </div>
- <!-- 页脚部分 -->
- <HomeFoot1></HomeFoot1>
- </div>
- </template>
- <script setup>
- //0.加载页面依赖 start ---------------------------------------->
- import { ref, onMounted } from 'vue';
- //格式化跳转路径 - 标题
- //首页分类栏目标题,不需要考虑外链
- const getLinkPath = (item) => {
- // console.log('item111333',item)
- // return `/${item.url}/1.html`;
- // return `/newsList/${item.cid}?page=1`;
- return `/${item.aLIas_pinyin}/list-1.html`;
- }
- //首页跳转到详情,这里需要考虑外链
- const getLinkPathDetail = (item) => {
- // console.log('item111222', item)
- if (item.islink == 1) {
- return `${item.linkurl}`;
- } else {
- //return `/${item.aLIas_pinyin}/${item.id}`;
- // return `/newsDetail/${item.id}?page=1`
- return `/${item.pinyin}/${item.id}.html`;
- }
- }
- //0.加载页面依赖 end ---------------------------------------->
- //1.获得路由id start ---------------------------------------->
- const route = useRoute();
- //获得当前的完整路径
- const fullPath = route.path;
- //拆分,取出来中间这一段,然后提取数字部分
- const segments = fullPath.split('/');
- const targetSegment = segments[1];
- //let routeId = 11 //排除路径错误可以打开这个
- //const numberPart = targetSegment.match(/\d+$/)?.[0];
- //let routeId = numberPart;
- let routeId;
- //通过导航路径反向查询导航id
- const getRouteId = await requestDataPromise('/web/getWebsiteRoute', {
- method: 'GET',
- query: {
- 'pinyin': targetSegment,
- },
- });
- if (getRouteId.code == 200) {
- routeId = getRouteId.data.category_id
- } else {
- console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- console.log("错误位置:通过url路径查询导航池id")
- console.log("后端错误反馈:", getRouteId.message)
- console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- }
- //1.获得路由id end ---------------------------------------->
- //2.页面交互效果 start ---------------------------------------->
- //2.1
- const title = ref("")
- const tabsData = ref(1)
- async function getPageDataTitle() {
- const mkdata = await requestDataPromise('/web/getOneWebsiteCategory', {
- method: 'GET',
- query: {
- 'catid': routeId,
- },
- });
- if (mkdata.code == 200) {
- title.value = mkdata.data.alias;
- } else {
- console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- console.log("错误位置:获取二级标题")
- console.log("后端错误反馈:", mkdata.message)
- console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- }
- }
- getPageDataTitle();
- //2.1 新闻图片切换
- const hoverStatus = ref(0)
- const qhPic = function (num) {
- console.log(num)
- hoverStatus.value = num;
- }
- //2.2 选项卡切换
- let showTabs = ref(1)
- let qhtabs = function (number) {
- console.log(number)
- showTabs.value = number
- }
- //2.3 展示广告
- let adImg1 = ref({})
- let adImg2 = ref({})
- let adImg3 = ref({})
- let adImg4 = ref({})
- onMounted(async () => {
- //从客户端获取行政职能部门 加快打开速度
- const { $webUrl, $CwebUrl } = useNuxtApp();
- //广告1
- let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=xcw_category_0001`
- const responseAd1 = await fetch(url, {
- headers: {
- 'Content-Type': 'application/json',
- 'Userurl': $CwebUrl,
- 'Origin': $CwebUrl
- }
- });
- const resultAd1 = await responseAd1.json();
- adImg1.value = resultAd1.data[0];
- //广告2
- let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=xcw_category_0002`
- const responseAd2 = await fetch(url2, {
- headers: {
- 'Content-Type': 'application/json',
- 'Userurl': $CwebUrl,
- 'Origin': $CwebUrl
- }
- });
- const resultAd2 = await responseAd2.json();
- adImg2.value = resultAd2.data[0];
- //广告3
- let url3 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=xcw_category_0003`
- const responseAd3 = await fetch(url3, {
- headers: {
- 'Content-Type': 'application/json',
- 'Userurl': $CwebUrl,
- 'Origin': $CwebUrl
- }
- });
- const resultAd3 = await responseAd3.json();
- adImg3.value = resultAd3.data[0];
- //广告4
- let url4 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=xcw_category_0004`
- const responseAd4 = await fetch(url4, {
- headers: {
- 'Content-Type': 'application/json',
- 'Userurl': $CwebUrl,
- 'Origin': $CwebUrl
- }
- });
- const resultAd4 = await responseAd4.json();
- adImg4.value = resultAd4.data[0];
- })
- //2.页面交互效果 end ---------------------------------------->
- //3.渲染页面数据 start ---------------------------------------->
- //3.1 该页面上所有的导航池 转为动态数据
- const pageCategory = ref([]);
- //3.2 该页面上需要渲染的所有数据
- const pageData = ref([
- // { id: 0, data: [], data2: [], title: "", cid: "" },
- // { id: 1, data: [], title: "", cid: "" },
- // { id: 2, data: [], title: "", cid: "" },
- // { id: 3, data: [], title: "", cid: "" },
- // { id: 4, data: [], title: "", cid: "" },
- // { id: 5, data: [], title: "", cid: "" },
- // { id: 6, data: [], title: "", cid: "" },
- // { id: 7, data: [], title: "", cid: "" },
- // { id: 8, data: [], title: "", cid: "" },
- ])
- const navSize = ref("");
- //3.3 获取所有导航
- try {
- const navigateData = await requestDataPromise('/web/getWebsiteModelCategory', {
- method: 'GET',
- query: {
- 'placeid': 1,
- 'pid': routeId,
- 'num': 8
- },
- });
- if (navigateData.code == 200) {
- // 遍历可用的导航池放到页面中
- for (let index in navigateData.data) {
- let data = {
- title: navigateData.data[index].name,
- cid: navigateData.data[index].category_id,
- children_count: navigateData.data[index].children_count,
- alias: navigateData.data[index].alias,
- aLIas_pinyin: targetSegment + "/" + navigateData.data[index].aLIas_pinyin,
- data: [],
- data1: [],
- data2: [],
- data3: [],
- data4: [],
- category_id1: "",
- category_id2: "",
- category_id3: "",
- category_id4: "",
- title1: "",
- title2: "",
- title3: "",
- title4: ""
- };
- if (navigateData.data[index].is_url == 1) {
- // 处理 URL 的逻辑
- } else {
- //每个页面最多8个模块
- pageData.value.push(data);
- }
- }
- //导航池加载完毕,开始申请模块数据
- // await getPageData1();
- // await getPageData2();
- // await getPageData3();
- // await getPageData4();
- // await getPageData5();
- // await getPageData6();
- // await getPageData7();
- // await getPageData8();
- let getJson = [
- // { "parent": routeId + ",0,0", "child": pageData.value[0].cid + ",3,10" },//模块1理论前沿
- // { "parent": routeId + ",0,0", "child": pageData.value[1].cid + ",2,6" },//模块2典型经验
- // { "parent": routeId + ",0,0", "child": pageData.value[2].cid + ",3,10" },//模块3农业天地
- // { "parent": routeId + ",0,0", "child": pageData.value[3].cid + ",2,6" },//模块4美丽乡村
- // { "parent": routeId + ",0,0", "child": pageData.value[4].cid + ",1,10" },//模块5农民之家
- // { "parent": routeId + ",0,0", "child": pageData.value[5].cid + ",3,10" },//模块6农业天地
- // { "parent": routeId + ",0,0", "child": pageData.value[6].cid + ",3,10" },//模块7农村建设
- // { "parent": routeId + ",0,0", "child": pageData.value[7].cid + ",3,13" },//模块8高端资讯
- ]
- for (let i = 0; i < pageData.value.length; i++) {
- if (i == 0) {
- getJson.push({ "parent": routeId + ",0,0", "child": pageData.value[i].cid + ",3,10" });
- } else if (i == 1) {
- getJson.push({ "parent": routeId + ",0,0", "child": pageData.value[i].cid + ",2,6" });
- } else if (i == 2) {
- getJson.push({ "parent": routeId + ",0,0", "child": pageData.value[i].cid + ",3,10" });
- } else if (i == 3) {
- getJson.push({ "parent": routeId + ",0,0", "child": pageData.value[i].cid + ",2,6" });
- } else if (i == 4) {
- getJson.push({ "parent": routeId + ",0,0", "child": pageData.value[i].cid + ",1,10" });
- } else if (i == 5) {
- getJson.push({ "parent": routeId + ",0,0", "child": pageData.value[i].cid + ",3,10" });
- } else if (i == 6) {
- getJson.push({ "parent": routeId + ",0,0", "child": pageData.value[i].cid + ",3,10" });
- } else if (i == 7) {
- getJson.push({ "parent": routeId + ",0,0", "child": pageData.value[i].cid + ",3,13" });
- }
- }
- let jsonString = JSON.stringify(getJson);
- // console.log("jsonString", getJson);
- getPageAllData(jsonString);
- } else {
- console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- console.log("错误位置:分类页导航池")
- console.log("后端错误反馈:", navigateData.message)
- console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- }
- } catch (error) {
- console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- console.log("错误位置:分类页导航渲染阶段")
- console.log("错误:导航池渲染执行接口出错!请检查首页的14的模块的具体执行方法!")
- console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- }
- async function getPageAllData(jsonString) {
- const mkdata = await requestDataPromise('/web/getWebsiteAllArticle', {
- method: 'GET',
- query: {
- 'id': jsonString
- },
- });
- if (mkdata.code == 200) {
- console.log(778899)
- console.log(mkdata.data)
- //模块1理论前沿
- if (mkdata.data[0].child.imgnum.length > 0) {
- pageData.value[0].data.push(mkdata.data[0].child.imgnum[0]);
- }
- if (mkdata.data[0].child.imgnum.length > 1) {
- pageData.value[0].data1.push(mkdata.data[0].child.imgnum[1]);
- }
- if (mkdata.data[0].child.imgnum.length > 2) {
- pageData.value[0].data1.push(mkdata.data[0].child.imgnum[2]);
- }
- if (mkdata.data[0].child.textnum) {
- pageData.value[0].data2 = mkdata.data[0].child.textnum;
- }
- //模块2典型经验
- if (mkdata.data[1].child.imgnum) {
- pageData.value[1].data = mkdata.data[1].child.imgnum;
- }
- if (mkdata.data[1].child.textnum) {
- pageData.value[1].data1 = mkdata.data[1].child.textnum;
- }
- //模块3农业天地
- if (mkdata.data[2].child.imgnum.length > 0) {
- pageData.value[2].data.push(mkdata.data[2].child.imgnum[0]);
- }
- if (mkdata.data[2].child.imgnum.length > 1) {
- pageData.value[2].data1.push(mkdata.data[2].child.imgnum[1]);
- }
- if (mkdata.data[2].child.imgnum.length > 2) {
- pageData.value[2].data1.push(mkdata.data[2].child.imgnum[2]);
- }
- pageData.value[2].data2 = mkdata.data[2].child.textnum;
- //模块4美丽乡村
- pageData.value[3].data = mkdata.data[3].child.imgnum;
- pageData.value[3].data2 = mkdata.data[3].child.textnum;
- //模块5农民之家
- pageData.value[4].data = mkdata.data[4].child.imgnum;
- for (let i in mkdata.data[4].child.textnum) {
- if (i < 5) {
- pageData.value[4].data1.push(mkdata.data[4].child.textnum[i]);
- } else {
- pageData.value[4].data2.push(mkdata.data[4].child.textnum[i]);
- }
- }
- //模块6农业天地
- if (mkdata.data[5].child.imgnum.length > 0) {
- pageData.value[5].data.push(mkdata.data[5].child.imgnum[0]);
- }
- if (mkdata.data[5].child.imgnum.length > 1) {
- pageData.value[5].data1.push(mkdata.data[5].child.imgnum[1]);
- }
- if (mkdata.data[5].child.imgnum.length > 2) {
- pageData.value[5].data1.push(mkdata.data[5].child.imgnum[2]);
- }
- pageData.value[5].data2 = mkdata.data[5].child.textnum;
- //模块7农村建设
- if (mkdata.data[6].child.imgnum.length > 0) {
- pageData.value[6].data.push(mkdata.data[6].child.imgnum[0]);
- }
- if (mkdata.data[6].child.imgnum.length > 1) {
- pageData.value[6].data1.push(mkdata.data[6].child.imgnum[1]);
- }
- if (mkdata.data[6].child.imgnum.length > 2) {
- pageData.value[6].data1.push(mkdata.data[6].child.imgnum[2]);
- }
- pageData.value[6].data2 = mkdata.data[6].child.textnum;
- //模块8高端资讯
- pageData.value[7].data2 = mkdata.data[7].child.imgnum;
- console.log('1111111',mkdata.data[4].child.textnum);
-
- for (let i in mkdata.data[4].child.textnum) {
- if (i < 7) {
- pageData.value[7].data1.push(mkdata.data[4].child.textnum[i]);
- } else if (i < 9) {
- pageData.value[7].data2.push(mkdata.data[4].child.textnum[i]);
- } else if (i < 11) {
- pageData.value[7].data3.push(mkdata.data[4].child.textnum[i]);
- } else {
- pageData.value[7].data4.push(mkdata.data[4].child.textnum[i]);
- }
- }
- } else {
- ElMessage.error(mkdata.message)
- }
- }
- //获得模块数据
- // async function getPageData(catid, img_num, text_num, modulesNum, childNavNum, childImgNum, childTextNum) {
- // const mkdata = await requestDataPromise('/web/getWebsiteCatidArticle', {
- // method: 'GET',
- // query: {
- // 'catid': catid, //catid
- // 'img_num': img_num, //图片数量
- // 'text_num': text_num, //文字数量
- // 'child_catnum': childNavNum,//子级栏目菜单数量
- // 'child_imgnum': childImgNum,//子栏目展示图片新闻数量
- // 'child_textnum': childTextNum//子栏目展示文字新闻数量
- // },
- // });
- // if (modulesNum == 1) {
- // for (let i in mkdata.data.img) {
- // if (i < 1) {
- // pageData.value[0].data.push(mkdata.data.img[i]);
- // } else {
- // pageData.value[0].data1.push(mkdata.data.img[i]);
- // }
- // }
- // pageData.value[0].data2 = mkdata.data.text;
- // }
- // if (modulesNum == 2) {
- // pageData.value[1].data = mkdata.data.img;
- // pageData.value[1].data1 = mkdata.data.text;
- // }
- // if (modulesNum == 3) {
- // for (let i in mkdata.data.img) {
- // if (i < 1) {
- // pageData.value[2].data.push(mkdata.data.img[i]);
- // } else {
- // pageData.value[2].data1.push(mkdata.data.img[i]);
- // }
- // }
- // pageData.value[2].data2 = mkdata.data.text;
- // }
- // if (modulesNum == 4) {
- // pageData.value[3].data = mkdata.data.img;
- // pageData.value[3].data2 = mkdata.data.text;
- // }
- // //模块5
- // if (modulesNum == 5) {
- // pageData.value[4].data = mkdata.data.img;
- // for (let i in mkdata.data.text) {
- // if (i < 5) {
- // pageData.value[4].data1.push(mkdata.data.text[i]);
- // } else {
- // pageData.value[4].data2.push(mkdata.data.text[i]);
- // }
- // }
- // }
- // if (modulesNum == 6) {
- // for (let i in mkdata.data.img) {
- // if (i < 1) {
- // pageData.value[5].data.push(mkdata.data.img[i]);
- // } else {
- // pageData.value[5].data1.push(mkdata.data.img[i]);
- // }
- // }
- // pageData.value[5].data2 = mkdata.data.text;
- // }
- // if (modulesNum == 7) {
- // for (let i in mkdata.data.img) {
- // if (i < 1) {
- // pageData.value[6].data.push(mkdata.data.img[i]);
- // } else {
- // pageData.value[6].data1.push(mkdata.data.img[i]);
- // }
- // }
- // pageData.value[6].data2 = mkdata.data.text;
- // }
- // //模块8
- // if (modulesNum == 8) {
- // pageData.value[7].data = mkdata.data.img;
- // for (let i in mkdata.data.text) {
- // if (i < 7) {
- // pageData.value[7].data1.push(mkdata.data.text[i]);
- // } else if (i < 9) {
- // pageData.value[7].data2.push(mkdata.data.text[i]);
- // } else if (i < 11) {
- // pageData.value[7].data3.push(mkdata.data.text[i]);
- // } else {
- // pageData.value[7].data4.push(mkdata.data.text[i]);
- // }
- // }
- // }
- // }
- //新农村
- //模块1 理论前沿
- // async function getPageData1() {
- // await getPageData(pageData.value[0].cid, 3, 10, 1, 0, 0, 0);
- // }
- // //模块2 典型经验
- // async function getPageData2() {
- // await getPageData(pageData.value[1].cid, 2, 6, 2, 0, 0, 0);
- // }
- // //模块3 农业天地
- // async function getPageData3() {
- // await getPageData(pageData.value[2].cid, 3, 10, 3, 0, 0, 0);
- // }
- // //模块4 美丽乡村
- // async function getPageData4() {
- // await getPageData(pageData.value[3].cid, 2, 6, 4, 0, 0, 0);
- // }
- // //模块5 农民之家
- // async function getPageData5() {
- // await getPageData(pageData.value[4].cid, 1, 10, 5, 0, 0, 0);
- // }
- // //模块6 农业天地
- // async function getPageData6() {
- // await getPageData(pageData.value[5].cid, 3, 10, 6, 0, 0, 0);
- // }
- // //模块7 农村建设
- // async function getPageData7() {
- // await getPageData(pageData.value[6].cid, 3, 10, 7, 0, 0, 0);
- // }
- // //模块8 高端资讯
- // async function getPageData8() {
- // await getPageData(pageData.value[7].cid, 3, 13, 8, 0, 0, 0);
- // }
- // 注意,为了保持模块的数量,当前固定为8个
- // 所以这里的农业天地,合并了原来是下面的7号模块
- // 而原本是7号模块的地方现在变成了8号模块
- //3.渲染页面数据 end ---------------------------------------->
- //4.设置seo信息 start---------------------------------------->
- //4.1 设置seo信息
- const setData = await requestDataPromise('/web/getWebsiteCategoryHead', {
- method: 'GET',
- query: {
- 'catid': routeId
- },
- });
- if (setData.code == 200) {
- let seoTitle = setData.data.seo_title;
- let seoDescription = setData.data.seo_description;
- let seoKeywords = setData.data.seo_keywords;
- let seoSuffix = setData.data.suffix;
- let seoName = setData.data.website_name;
- useSeoMeta({
- title: seoTitle + "_" + seoSuffix,
- meta: [
- { name: 'description', content: seoDescription + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
- { name: 'keywords', content: seoKeywords + "_" + seoName + "_" + seoSuffix, tagPriority: 10 }
- ]
- });
- } else {
- console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- console.log("错误位置:设置分类页面SEO数据")
- console.log("后端错误反馈:", setData.message)
- console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- }
- //4.设置seo信息 end---------------------------------------->
- //5. 获取日期中单独的年 月 日 start--------------------------->
- function getTime(date, part, digits) {
- const d = new Date(date);
- if (part === 'year') {
- let year = d.getFullYear();
- if (digits === 2) {
- return String(year).slice(-2);
- }
- return year;
- } else if (part === 'month') {
- let month = d.getMonth() + 1;
- if (digits === 2) {
- return String(month).padStart(2, '0');
- }
- if (month < 10) {
- month = '0' + month;
- } else {
- month = month;
- }
- return month;
- } else if (part === 'day') {
- let day = d.getDate();
- if (digits === 2) {
- return String(day).padStart(2, '0');
- }
- return day;
- }
- return null;
- }
- //5. 获取日期中单独的年 月 日 end------------------------------>
- </script>
- <style lang="less" scoped>
- // 一级标题
- .nav1 {
- width: 100%;
- height: 214px;
- background: #fff;
- .inner {
- width: 1200px;
- height: 214px;
- margin: 0 auto;
- .nav1_title {
- width: 1120px;
- height: 214px;
- margin-left: 40px;
- line-height: 217px;
- text-align: center;
- font-family: DingTalk JinBuTi, DingTalk JinBuTi;
- font-weight: 400;
- font-size: 50px;
- color: #6D2512;
- background: url(/_nuxt/public/index/title_bg.png) no-repeat 0;
- }
- }
- }
- .nav2top {
- width: 1250px;
- height: 3px;
- margin: 0 auto;
- background-color: #a01c0e;
- }
- .nav2btm {
- width: 1200px;
- height: 3px;
- margin: 0 auto;
- background-color: #a01c0e;
- }
- .nav2 {
- width: 100%;
- height: 48px;
- background-color: #a01c0e;
- .inner {
- width: 1250px;
- height: 48px;
- line-height: 48px;
- padding: 0 45px;
- margin: 0 auto;
- box-sizing: border-box;
- display: flex;
- // justify-content: space-between;
- .titleList {
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: bold;
- font-size: 14px;
- color: #FFFFFF;
- .nav2_title {
- display: inline-block;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: bold;
- font-size: 14px;
- color: #FFFFFF;
- }
- a {
- padding: 0 38px;
- color: #FFFFFF;
- border-left: 1px solid #7E1C11;
- }
- //鼠标点击后的样式
- .nav2_title_active {
- display: inline-block;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: bold;
- font-size: 14px;
- color: #FFFFFF;
- border-bottom: 1px solid #FFFFFF;
- }
- }
- .titleList:hover {
- a {
- color: #a01c0e;
- .nav2_title {
- border-bottom: 1px solid #FFFFFF;
- }
- }
- }
- .home {
- width: 100px;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: bold;
- font-size: 14px;
- color: #F8ECD2;
- }
- }
- }
- //第一部分
- .part1 {
- width: 100%;
- height: 585px;
- margin-top: 35px;
- .inner {
- width: 1200px;
- margin: 0 auto;
- .part1_left {
- float: left;
- width: 720px;
- .part1_title {
- width: 720px;
- height: 50px;
- line-height: 50px;
- .nav_part1_left {
- float: left;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: 400;
- font-size: 20px;
- color: #333333;
- position: relative;
- a {
- color: #333333;
- }
- em {
- display: inline-block;
- width: 8px;
- height: 8px;
- background-color: #a01c0e;
- border-radius: 4px;
- position: absolute;
- top: 5px;
- }
- }
- }
- .part1_content {
- width: 720px;
- margin-top: 20px;
- .context_left {
- float: left;
- width: 350px;
- .top {
- width: 350px;
- img {
- width: 350px;
- height: 230px;
- }
- a .title1 {
- margin-top: 15px;
- width: 350px;
- height: 48px;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- overflow: hidden;
- text-overflow: ellipsis;
- word-break: break-all;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: bold;
- font-size: 18px;
- color: #333333;
- }
- }
- .top:hover {
- a .title1 {
- color: #a01c0e;
- }
- }
- .bottom {
- width: 350px;
- margin-top: 25px;
- .bottom_left {
- float: left;
- width: 165px;
- img {
- width: 165px;
- height: 96px;
- }
- a .title2 {
- margin-top: 10px;
- width: 165px;
- height: 48px;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- overflow: hidden;
- text-overflow: ellipsis;
- word-break: break-all;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: 400;
- font-size: 18px;
- color: #333333;
- }
- }
- .bottom_left:first-child {
- margin-right: 20px;
- }
- }
- .bottom_left:hover {
- a .title2 {
- color: #a01c0e;
- }
- }
- }
- .context_right {
- float: right;
- width: 350px;
- .rightContent {
- width: 350px;
- height: 230px;
- .context1:nth-child(5n+1) {
- width: 345px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: bold;
- font-size: 18px;
- color: #333333;
- a {
- color: #333333;
- }
- }
- .context1:nth-child(5n+1):hover a {
- color: #a01c0e;
- }
- .context1 {
- margin-bottom: 27px;
- width: 345px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: 400;
- font-size: 18px;
- color: #333333;
- a {
- color: #333333;
- }
- }
- .context1:hover a {
- color: #a01c0e;
- }
- }
- }
- }
- }
- .part1_right {
- float: right;
- width: 450px;
- // height: 1000px;
- .part1_right_title {
- width: 450px;
- height: 50px;
- line-height: 50px;
- .part1_right_title1_active {
- float: left;
- margin-right: 40px;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: 400;
- font-size: 20px;
- color: #333333;
- position: relative;
- a {
- color: #333333;
- }
- .active_bg {
- display: inline-block;
- width: 8px;
- height: 8px;
- background-color: #a01c0e;
- border-radius: 4px;
- position: absolute;
- top: 7px;
- right: -5px;
- }
- }
- .part1_right_title1 {
- float: left;
- margin-right: 40px;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: 400;
- font-size: 20px;
- color: #999999;
- position: relative;
- a {
- color: #999999;
- }
- }
- }
- .part1_right_content {
- width: 450px;
- // height: 940px;
- margin-top: 20px;
- .part1_right_top11 {
- width: 450px;
- height: 180px;
- position: relative;
- .part1_right_content_top {
- float: left;
- width: 220px;
- height: 180px;
- a img {
- width: 220px;
- height: 130px;
- }
- a .content_top_title2 {
- display: inline-block;
- width: 220px;
- padding: 0 10px;
- box-sizing: border-box;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: 400;
- font-size: 18px;
- color: #333333;
- margin-top: 10px;
- }
- }
- .part1_right_content_top:hover {
- a .content_top_title2 {
- color: #a01c0e;
- }
- }
- .part1_right_content_top:nth-child(2) {
- margin-left: 10px;
- }
- }
- .part1_right_content_bottom {
- width: 450px;
- height: 300px;
- margin-top: 15px;
- overflow: hidden;
- .content_bottom_list {
- width: 450px;
- height: 22px;
- line-height: 21px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- margin-bottom: 28px;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: 400;
- font-size: 18px;
- color: #333333;
- a {
- color: #333333;
- }
- }
- .content_bottom_list:hover {
- a {
- color: #a01c0e;
- }
- }
- }
- }
- }
- }
- }
- //第二部分
- .part2 {
- width: 100%;
- overflow: hidden;
- // margin-bottom: 40px;
- .inner {
- width: 1200px;
- margin: 0 auto;
- .part2_left {
- float: left;
- width: 720px;
- .part2_title {
- width: 720px;
- height: 50px;
- line-height: 50px;
- .nav_part2_left {
- float: left;
- width: 100px;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: 400;
- font-size: 20px;
- color: #333333;
- position: relative;
- a {
- color: #333333;
- }
- em {
- display: inline-block;
- width: 8px;
- height: 8px;
- background-color: #a01c0e;
- border-radius: 4px;
- position: absolute;
- top: 9px;
- right: 6px;
- }
- }
- }
- .part2_content {
- width: 720px;
- margin-top: 20px;
- .part2_content_left {
- float: left;
- width: 350px;
- .content_a {
- width: 350px;
- height: 230px;
- // margin-bottom: 25px;
- .context111:nth-child(5n+1) {
- width: 345px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: bold;
- font-size: 18px;
- color: #333333;
- a {
- color: #333333;
- }
- }
- .context111 {
- margin-bottom: 27px;
- width: 345px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: 400;
- font-size: 18px;
- color: #333333;
- a {
- color: #333333;
- }
- }
- .context111:hover a {
- color: #a01c0e;
- }
- }
- }
- .part2_content_right {
- float: right;
- width: 350px;
- height: 480px;
- .right_top {
- width: 350px;
- height: 300px;
- a img {
- width: 350px;
- height: 230px;
- }
- a .title11 {
- margin-top: 15px;
- width: 350px;
- height: 48px;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- overflow: hidden;
- text-overflow: ellipsis;
- word-break: break-all;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: bold;
- font-size: 18px;
- color: #333333;
- }
- }
- .right_top:hover {
- color: #a01c0e;
- a .title11 {
- color: #a01c0e;
- }
- }
- .right_bottom {
- width: 350px;
- height: 165px;
- margin-top: 20px;
- .bottom_left {
- float: left;
- width: 165px;
- height: 130px;
- a img {
- width: 165px;
- height: 96px;
- }
- a .title22 {
- margin-top: 10px;
- width: 165px;
- height: 48px;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- overflow: hidden;
- text-overflow: ellipsis;
- word-break: break-all;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: 400;
- font-size: 18px;
- color: #333333;
- }
- }
- .bottom_left:hover {
- color: #a01c0e;
- a .title22 {
- color: #a01c0e;
- }
- }
- .bottom_left:first-child {
- margin-right: 20px;
- }
- }
- }
- }
- }
- .part2_right {
- float: right;
- width: 450px;
- // height: 1000px;
- .part2_right_title {
- width: 450px;
- height: 50px;
- line-height: 50px;
- .part2_right_title1_active {
- float: left;
- margin-right: 40px;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: 400;
- font-size: 20px;
- color: #333333;
- position: relative;
- a {
- color: #333333;
- }
- .active_bg11 {
- display: inline-block;
- width: 8px;
- height: 8px;
- background-color: #a01c0e;
- border-radius: 4px;
- position: absolute;
- top: 7px;
- right: -5px;
- }
- }
- .part2_right_title1 {
- float: left;
- margin-right: 40px;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: 400;
- font-size: 20px;
- color: #999999;
- position: relative;
- a {
- color: #999999;
- }
- }
- }
- .part2_right_content {
- width: 450px;
- margin-top: 20px;
- .part2_right_top11 {
- width: 450px;
- height: 170px;
- position: relative;
- .part2_right_content_top {
- float: left;
- width: 220px;
- height: 180px;
- a img {
- width: 220px;
- height: 130px;
- }
- a .content_top_title22 {
- display: inline-block;
- width: 220px;
- padding: 0 10px;
- box-sizing: border-box;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: 400;
- font-size: 18px;
- color: #333333;
- margin-top: 10px;
- }
- }
- .part2_right_content_top:hover {
- a .content_top_title22 {
- color: #a01c0e;
- }
- }
- .part2_right_content_top:nth-child(2) {
- margin-left: 10px;
- }
- }
- .part2_right_content_bottom {
- width: 450px;
- height: 300px;
- margin-top: 20px;
- overflow: hidden;
- .content_bottom_list {
- width: 450px;
- height: 22px;
- line-height: 21px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- margin-bottom: 28px;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: 400;
- font-size: 18px;
- color: #333333;
- a {
- color: #333333;
- }
- }
- .content_bottom_list:hover {
- a {
- color: #a01c0e;
- }
- }
- }
- }
- }
- }
- }
- //第三部分
- .part3 {
- width: 100%;
- overflow: hidden;
- // height: 1200px;
- margin-top: 35px;
- margin-bottom: 40px;
- .inner {
- width: 1200px;
- height: 1200px;
- background-color: #fff;
- .part3_left {
- float: left;
- .part3_left_top {
- width: 720px;
- overflow: hidden;
- .part3_leftTitle {
- width: 720px;
- height: 50px;
- line-height: 50px;
- .part3_left_title:first-child {
- float: left;
- margin-right: 20px;
- width: 100px;
- height: 50px;
- line-height: 50px;
- position: relative;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: 400;
- font-size: 20px;
- color: #333333;
- a {
- color: #333333;
- }
- em {
- display: inline-block;
- width: 8px;
- height: 8px;
- background-color: #a01c0e;
- border-radius: 4px;
- position: absolute;
- top: 9px;
- right: 6px;
- }
- }
- .part3_left_title {
- float: left;
- margin-right: 20px;
- width: 100px;
- height: 50px;
- line-height: 50px;
- position: relative;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: 400;
- font-size: 20px;
- color: #999999;
- a {
- color: #999999;
- }
- // em{
- // display: inline-block;
- // width: 8px;
- // height: 8px;
- // background-color: #a01c0e;
- // border-radius: 4px;
- // position: absolute;
- // top: 9px;
- // right: 6px;
- // }
- }
- }
- .part3_left_content {
- width: 720px;
- margin-top: 20px;
- .part3_left_content_top {
- .content_top_left {
- float: left;
- width: 350px;
- height: 484px;
- .part3_photo_text {
- width: 350px;
- height: 280px;
- position: relative;
- img {
- width: 350px;
- height: 230px;
- }
- .littleTips {
- display: inline-block;
- width: 50px;
- height: 26px;
- line-height: 26px;
- text-align: center;
- background-color: #a01c0e;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: 400;
- font-size: 16px;
- color: #fff;
- position: absolute;
- top: 0;
- right: 10px;
- }
- .part3_text {
- display: inline-block;
- width: 350px;
- height: 26px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: bold;
- font-size: 18px;
- color: #333333;
- margin-top: 15px;
- }
- }
- .part3_photo_text:hover {
- .part3_text {
- color: #a01c0e;
- }
- }
- .part3_content {
- width: 350px;
- .part3_content_list:first-child {
- width: 350px;
- height: 25px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: bold;
- font-size: 18px;
- color: #333333;
- line-height: 22px;
- margin-top: 35px;
- a {
- color: #333333;
- }
- }
- .part3_content_list:first-child:hover {
- a {
- color: #a01c0e;
- }
- }
- .part3_content_list:last-child {
- margin-bottom: 0;
- }
- .part3_content_list {
- width: 350px;
- height: 25px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: 400;
- font-size: 18px;
- color: #333333;
- line-height: 22px;
- margin-bottom: 27px;
- a {
- color: #333333;
- }
- }
- .part3_content_list:hover {
- a {
- color: #a01c0e;
- }
- }
- }
- }
- .content_top_right {
- float: left;
- width: 350px;
- height: 542px;
- border: 1px solid #D9D9D9;
- margin-left: 20px;
- padding: 30px 25px;
- box-sizing: border-box;
- .content_right_list {
- width: 350px;
- height: 58px;
- line-height: 58px;
- margin-bottom: 48px;
- .part3_time {
- float: left;
- width: 77px;
- height: 58px;
- color: #a01c0e;
- .month {
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: 400;
- font-size: 26px;
- color: #A01C0E;
- line-height: 30px;
- }
- .xiegang {
- font-size: 22px;
- font-weight: 400;
- }
- .day {
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: 400;
- font-size: 16px;
- color: #A01C0E;
- line-height: 19px;
- }
- }
- .time_left_content {
- float: left;
- width: 231px;
- height: 58px;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- overflow: hidden;
- text-overflow: ellipsis;
- word-break: break-all;
- line-height: 22px;
- padding-top: 12px;
- box-sizing: border-box;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: 400;
- font-size: 18px;
- color: #333333;
- border-left: 1px solid #D9D9D9;
- padding-left: 22px;
- a {
- color: #333333;
- }
- a:hover {
- color: #a01c0e;
- }
- }
- }
- .content_right_list:hover {
- .time_left_content {
- color: #a01c0e;
- }
- }
- }
- }
- }
- }
- .part3_left_bottom {
- width: 720px;
- margin-top: 25px;
- .part3_leftTitle1 {
- width: 720px;
- height: 50px;
- line-height: 50px;
- margin-bottom: 25px;
- .part3_left_title_active {
- float: left;
- margin-right: 20px;
- width: 100px;
- height: 50px;
- line-height: 50px;
- position: relative;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: 400;
- font-size: 20px;
- color: #333333;
- a.active {
- color: #333333;
- }
- em {
- display: inline-block;
- width: 8px;
- height: 8px;
- background-color: #a01c0e;
- border-radius: 4px;
- position: absolute;
- top: 9px;
- right: 6px;
- }
- }
- .part3_left_title {
- float: left;
- margin-right: 20px;
- width: 100px;
- height: 50px;
- line-height: 50px;
- position: relative;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: 400;
- font-size: 20px;
- color: #999999;
- a {
- color: #999999;
- }
- // em{
- // display: inline-block;
- // width: 8px;
- // height: 8px;
- // background-color: #a01c0e;
- // border-radius: 4px;
- // position: absolute;
- // top: 9px;
- // right: 6px;
- // }
- }
- }
- .part3_left_content1 {
- width: 720px;
- .content_bottom_left {
- float: left;
- width: 350px;
- // height: 350px;
- .content_top {
- width: 350px;
- img {
- width: 350px;
- height: 230px;
- }
- .part3_text {
- display: inline-block;
- width: 350px;
- height: 50px;
- line-height: 22px;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- overflow: hidden;
- text-overflow: ellipsis;
- word-break: break-all;
- margin-top: 15px;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: bold;
- font-size: 18px;
- color: #333333
- }
- }
- .content_top:hover {
- .part3_text {
- color: #a01c0e;
- }
- }
- .content_bottom {
- width: 350px;
- margin-top: 20px;
- .content_bottom_1 {
- float: left;
- width: 165px;
- img {
- width: 165px;
- height: 96px;
- }
- .part3_text {
- display: inline-block;
- width: 165px;
- height: 44px;
- line-height: 22px;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- overflow: hidden;
- text-overflow: ellipsis;
- word-break: break-all;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: 400;
- font-size: 18px;
- color: #333333;
- margin-top: 10px;
- }
- }
- .content_bottom_1:hover {
- .part3_text {
- color: #a01c0e;
- }
- }
- .content_bottom_1:first-child {
- margin-right: 20px;
- }
- }
- }
- .content_bottom_right {
- float: left;
- margin-left: 20px;
- width: 350px;
- .bottom_content_1 {
- width: 350px;
- .bottom_content_list:nth-child(5n+1) {
- font-weight: bold;
- }
- .bottom_content_list {
- width: 350px;
- height: 25px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: 400;
- font-size: 18px;
- color: #333333;
- line-height: 21px;
- margin-bottom: 25px;
- a {
- color: #333333;
- }
- }
- .bottom_content_list:hover {
- a {
- color: #a01c0e;
- }
- }
- }
- .bottom_content_1:first-child {
- margin-bottom: 20px;
- }
- .bottom_content_1:last-child {
- .bottom_content_list:last-child {
- margin-bottom: 0;
- }
- }
- }
- }
- }
- }
- .part3_right {
- float: right;
- width: 451px;
- .part3_rightTitle {
- width: 451px;
- height: 50px;
- line-height: 50px;
- .part3_right_title:first-child {
- float: left;
- margin-right: 20px;
- width: 100px;
- height: 50px;
- line-height: 50px;
- position: relative;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: 400;
- font-size: 20px;
- color: #333333;
- a {
- color: #333333;
- }
- em {
- display: inline-block;
- width: 8px;
- height: 8px;
- background-color: #a01c0e;
- border-radius: 4px;
- position: absolute;
- top: 9px;
- right: 6px;
- }
- }
- .part3_right_title {
- float: left;
- margin-right: 20px;
- width: 100px;
- height: 50px;
- line-height: 50px;
- position: relative;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: 400;
- font-size: 20px;
- color: #999999;
- a {
- color: #999999;
- }
- // em{
- // display: inline-block;
- // width: 8px;
- // height: 8px;
- // background-color: #a01c0e;
- // border-radius: 4px;
- // position: absolute;
- // top: 9px;
- // right: 6px;
- // }
- }
- .rightMore {
- float: right;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: 400;
- font-size: 12px;
- color: #999999;
- a {
- color: #999999;
- }
- }
- }
- .part3_right_content_top {
- width: 451px;
- height: 325px;
- position: relative;
- margin-top: 20px;
- .part3_right_contentlist_top {
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: 400;
- font-size: 18px;
- color: #333333;
- width: 425px;
- height: 25px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- margin-bottom: 25px;
- a {
- color: #333333;
- }
- .numStyle {
- display: inline-block;
- width: 22px;
- height: 22px;
- background-color: #f6f6f6;
- text-align: center;
- margin-right: 20px;
- font-family: Protest Strike, Protest Strike;
- font-weight: 400;
- font-size: 16px;
- color: #CCCCCC;
- border-radius: 4px;
- }
- }
- .part3_right_contentlist_top:hover {
- color: #a01c0e;
- a {
- color: #a01c0e;
- }
- }
- .part3_right_contentlist_top:nth-child(1) {
- .numStyle {
- background-color: #a01c0e;
- color: #fff;
- }
- }
- .part3_right_contentlist_top:nth-child(2) {
- .numStyle {
- background-color: #FFC62E;
- color: #fff;
- }
- }
- .part3_right_contentlist_top:nth-child(3) {
- .numStyle {
- background-color: #e98008;
- color: #fff;
- }
- }
- .part3_right_contentlist_top:last-child {
- margin-bottom: 10px;
- }
- }
- .part3_photo_text_right {
- width: 451px;
- height: 120px;
- margin-top: 35px;
- margin-bottom: 35px;
- background-color: #f6f3f0;
- .part3_text11 {
- float: left;
- width: 271px;
- height: 96px;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 3;
- overflow: hidden;
- text-overflow: ellipsis;
- word-break: break-all;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: 400;
- font-size: 18px;
- color: #333333;
- padding: 25px 20px;
- box-sizing: border-box;
- }
- img {
- float: left;
- width: 180px;
- height: 120px;
- }
- }
- .part3_photo_text_right:hover {
- color: #a01c0e;
- .part3_text11 {
- color: #a01c0e;
- }
- }
- .part3_right_content_11 {
- width: 451px;
- height: 70px;
- position: relative;
- .part3_right_contentlist_11 {
- width: 451px;
- height: 25px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: 400;
- font-size: 18px;
- color: #333333;
- line-height: 21px;
- .erjibiaoti {
- display: inline-block;
- width: 87px;
- height: 24px;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: 400;
- font-size: 18px;
- color: #A01C0E;
- border-right: #D3D5D8 1px solid;
- margin-right: 10px;
- }
- a {
- color: #333333;
- }
- }
- .part3_right_contentlist_11:hover {
- color: #a01c0e;
- a {
- color: #a01c0e;
- }
- }
- .part3_right_contentlist_11:first-child {
- margin-bottom: 25px;
- }
- }
- }
- }
- }
- </style>
|